package com.dd.cloud.user.entity.pres;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Lx
 * @version 1.0
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "药品/处方名称表")
public class DrugsPresAlias implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 药品/处方名称表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 药材编码
     */
    @Column(length = 20, comment = "药材编码")
    private String drugNum;

    /**
     * 药材正名/处方名
     */
    @Column(length = 20, comment = "药材正名/处方名")
    private String name;

    /**
     * 别名
     */
    @Column(length = 512, comment = "别名")
    private String alias;

    /**
     * 类型 1正名药品 2处方名
     */
    @Column(comment = "类型 1正名药品 2处方名")
    private Integer type;

    /**
     * 状态 1正常 -1删除
     */
    @Column(comment = "状态 1正常 -1删除")
    private Integer status;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;
}
